import unicodedata

# 存储汉字及其对应的 Unicode 编码
unicode_dict = {}

# 遍历汉字范围
for codepoint in range(0x4E00, 0X9FA6):
    char = chr(codepoint)
 
    hex_code = f'0x{codepoint:04x}'  # 转换为十六进制形式
    prefix = hex_code[:6]  # 获取前两位
    if prefix not in unicode_dict:
        unicode_dict[prefix] = ([], [])
        unicode_dict[prefix][0].append(hex_code)
        unicode_dict[prefix][1].append(char)

for prefix, (hex_codes, chars) in unicode_dict.items():
    print(' '.join(hex_codes))
    print(' '.join(chars))
